package com.ces.hk.mybatis.test;

import java.io.File;
import java.net.URL;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.ces.hk.mybatis.dao.service.UserDaoService;

public class tests {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		
		ApplicationContext context = new ClassPathXmlApplicationContext(
			"SpringApplication.xml");
		String path = tests.class.getResource("").getPath();
		UserDaoService userService = (UserDaoService) context
				.getBean("userService");
		System.out.println(userService.countAll());

	}


}
